<template>
  <div class="box">
    第三层 {{ count }}
    <button @click="plusplus">++</button>
  </div>
</template>

<script setup>
import { inject } from 'vue';

// 注入数据
const count = inject('count')
const plusplus = inject('plusplus')
</script>